/**
 * @author Administrator
 */
/*Load javascript-file*/
scriptCode = function(array) {
	var HTML = "";
	for (var i = 0, iLen = array.length; i < iLen; i++) {
		HTML += "<script src='/public/include/js/" + array[i]+ "' type='text\/javascript' language='JavaScript'><\/script>";
	}
	return HTML;
}
var HTML = scriptCode([
				'dump.js',
				"jquery-1.4.2.min.js",
				"formValidator.js",
				"formValidatorRegex.js",
				"DateTimeMask.js",
			]);
document.write(HTML);
delete(HTML);

/*Load css-file*/
cssCode = function(array){
	var cssHTML = "";
	for (var i = 0, iLen = array.length; i < iLen; i++) {
		cssHTML += "<link  href='/public/images/" + array[i]+ "' type='text\/css' rel=\'stylesheet\'><\/script>";
	}
	return cssHTML;
	
}
var cssHTML = cssCode([
				'validatorTidyMode.css'
			]);
document.write(cssHTML);
delete(cssHTML);			


//全选及反选
function checkall(){
	$('input[type=checkbox][name*=delete]').each(function(){
		$(this).attr('checked') ? $(this).attr('checked', false) : $(this).attr('checked', true);
	});
}